package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_XTBB"
 *     
*/
public class XtglXtbb implements Serializable {

    /** identifier field */
    private String bbbh;

    /** persistent field */
    private String rjbz;

    /** persistent field */
    private String fbsj;

    /** persistent field */
    private String bbh;

    /** nullable persistent field */
    private String bz;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public XtglXtbb(String bbbh, String rjbz, String fbsj, String bbh, String bz, String zt1, String zt2) {
        this.bbbh = bbbh;
        this.rjbz = rjbz;
        this.fbsj = fbsj;
        this.bbh = bbh;
        this.bz = bz;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglXtbb() {
    }

    /** minimal constructor */
    public XtglXtbb(String bbbh, String rjbz, String fbsj, String bbh) {
        this.bbbh = bbbh;
        this.rjbz = rjbz;
        this.fbsj = fbsj;
        this.bbh = bbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="BBBH"
     *         
     */
    public String getBbbh() {
        return this.bbbh;
    }

    public void setBbbh(String bbbh) {
        this.bbbh = bbbh;
    }

    /** 
     *            @hibernate.property
     *             column="RJBZ"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getRjbz() {
        return this.rjbz;
    }

    public void setRjbz(String rjbz) {
        this.rjbz = rjbz;
    }

    /** 
     *            @hibernate.property
     *             column="FBSJ"
     *             length="14"
     *             not-null="true"
     *         
     */
    public String getFbsj() {
        return this.fbsj;
    }

    public void setFbsj(String fbsj) {
        this.fbsj = fbsj;
    }

    /** 
     *            @hibernate.property
     *             column="BBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getBbh() {
        return this.bbh;
    }

    public void setBbh(String bbh) {
        this.bbh = bbh;
    }

    /** 
     *            @hibernate.property
     *             column="BZ"
     *             length="200"
     *         
     */
    public String getBz() {
        return this.bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("bbbh", getBbbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglXtbb) ) return false;
        XtglXtbb castOther = (XtglXtbb) other;
        return new EqualsBuilder()
            .append(this.getBbbh(), castOther.getBbbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getBbbh())
            .toHashCode();
    }

}
